popover menu: Fix style classes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 6 Jun 2019 18:08:52 +0000 (18:08 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Jun 2019 17:38:53 +0000 (17:38 +0000)
We want the same style classes that are produced
when creating a popover from a menu model.

gtk/gtkpopovermenu.c

index d23b45cdd9854e132c13d7d4870d0987c37e21ff..f8d85f76de74958cbbc8b6ca5a64a465fbb5e6ab 100644 (file)
@@ -146,7 +146,7 @@ gtk_popover_menu_init (GtkPopoverMenu *popover)
   g_signal_connect (stack, "notify::visible-child-name",
                     G_CALLBACK (visible_submenu_changed), popover);
 
-  style_context = gtk_widget_get_style_context (gtk_popover_get_contents_widget (GTK_POPOVER (popover)));
+  style_context = gtk_widget_get_style_context (GTK_WIDGET (popover));
   gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_MENU);
 }